package com.blacktry.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blacktry.entity.model.Admin;
import com.blacktry.entity.model.CourseInfo;
import com.blacktry.entity.model.Vo.Courseinformation;
import com.blacktry.entity.model.Vo.Courseinformation2;
import com.blacktry.mapper.CourseInfoMapper;
import com.blacktry.service.CourseInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.netty.util.internal.StringUtil;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author blackTry
 * @since 2021-12-12
 */
@Service
public class CourseInfoServiceImpl extends ServiceImpl<CourseInfoMapper, CourseInfo> implements CourseInfoService {
    @Override
    public Page<CourseInfo>  selectInfo(String userId, String courseId, Page<CourseInfo> page) {
        return this.baseMapper.selectInfo(userId, courseId,page);
    }

    @Override
    public Page<Courseinformation> selectCourse(String userId,Page<Courseinformation> page) {
        return this.baseMapper.selectCourse(userId,page);
    }

    @Override
    public Page<Courseinformation2> selectUser(String courseId,Page<Courseinformation2> page) {
        return this.baseMapper.selectUser(courseId,page);
    }
}
